<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%@page import="com.bringway.framework.util.DateUtils"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  
    <title>红点e贷服务管理系统</title>

<%
	SysUserDetails sysUserDetails = (SysUserDetails) SecurityContextHolder.getContext().getAuthentication()
			.getPrincipal();
	String gyh = "", username = "", roleId = "", roleName = "";
	if (null != sysUserDetails) {
		gyh = sysUserDetails.getGyh();
		username = sysUserDetails.getUsername();
		roleId = sysUserDetails.getRoleId();
		roleName = sysUserDetails.getRoleName();
	}
	System.out.println("gyh : " + gyh);
	System.out.println("username : " + username);
	System.out.println("roleId : " + roleId);
	System.out.println("roleName : " + roleName);
%>

<%
	request.setAttribute("basePath", request.getContextPath());
%>

   
    <script src="${basePath}/framework/ligerui/lib/json2.js"></script>
    <link href="${basePath}/framework/ligerui/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="${basePath}/framework/ligerui/lib/ligerUI/skins/Gray2014/css/all.css" rel="stylesheet" type="text/css" />  
    <script src="${basePath}/framework/ligerui/lib/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
    <script src="${basePath}/framework/ligerui/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>   
    <script src="${basePath}/framework/ligerui/lib/application/ligerui.expand.js"></script>
	<link href="${basePath}/framework/ligerui/contents/application/ne.css" rel="stylesheet" type="text/css" />  
    <script src="${basePath}/framework/ligerui/lib/application/ne.js" type="text/javascript"></script>
	<link href="${basePath}/framework/ligerui/contents/index/css/style.css" rel="stylesheet" />
	<script src="${basePath}/framework/ligerui/lib/ligerUI/js/plugins/ligerTab.js"></script>
	<%-- <script src="${basePath}/ligerui/js/indexdata.js"></script> --%>

<script type="text/javascript">
var baseUrl = '<%=request.getContextPath()%>';
var gyh = '<%=gyh%>';
var username = '<%=username%>';
var roleId = '<%=roleId%>';
var roleName = '<%=roleName%>';
var nowDate = '<%=DateUtils.getCurrentDataStr()%>';
</script>	
</head>
<body>
  	<div id="header" class="navbar navbar-inverse"> 
       	<div class="navbar-inner">
           	<div class="container-fluid">  
 				<div class="brand">
                   <h3>SSM</h3>
               	</div>
               	
               	<div class="topmenu">
                   <%-- <img src="${basePath}/framework/ligerui/left64.png" style="width:30px;height:30px" id="img"/> --%>
                   <ul class="menu">
                       
                   </ul>
                   <%-- <img src="${basePath}/framework/ligerui/right95.png" style="width:30px;height: 30px" /> --%>
               	</div>
               	<div class="main_left_wap">
		<div class="main_left" id="tree_-1"></div>
		</div>
               	<div class="top-nav ">
                   	<ul class="nav pull-right top-menu" > 
   						<li class="dropdown">
                           	<a href="#" class="dropdown-toggle" data-toggle="dropdown" style="display:block;padding:3px;margin:0;margin-top: -5px;">
                               <div style="width:32px;height:32px; overflow:hidden;border-radius: 50% !important; border: 2px solid rgba(255,255,255,0.5);float:left;">
                                   
                               </div>
                               <div style="float:left;margin-left:10px;line-height: 28px;margin-top: 2px;">
                                   <span class="username"><%=gyh%></span>
                                    <b class="caret"></b>
                               </div> 
                               <div style="clear:both;"></div>
                           	</a>
                           	<ul class="dropdown-menu logout">
                               <li><a href="javascript:void(0)" class="myinfo"><i class="icon-user"></i>我的资料</a></li>
                               <li><a href="JavaScript:onLoginOut()"></i>退出</a></li>
                               <li><a href="${basePath}/pages/main/main.jsp"></i>回到老版系统</a></li>
                           	</ul>
                       	</li> 
                   	</ul> 
               	</div>
           	</div>
       	</div> 
   	</div>  
    <div id="sidebar">  
    </div> 
    <div id="maincontent"> 
        <div tabid="home" title="我的主页"> 
             <iframe frameborder="0" name="home" id="home" src="${basePath}/framework/ligerui/demos/web/autoFilter.html"></iframe>
        </div> 
    </div>   
 	<script type="text/javascript">
        ne.urlRoot = '/'; 
		$(function ()
        {
            $("#header .myinfo").click(function (){
                var url = '${basePath}/framework/ligerui/demos/zl/modify.html';
				openTab({
                    url: url,
                    text: '修改我的资料',
                    tabid: 'myinfo'
                });
                 
            });
        });
    </script>
    <script src="${basePath}/global/js/ux_liger/main/main.js"></script> 
</body>
</html>
